// 全局过滤器
// 火车票/机票订单状态
export function orderStatus(val){
  if(!val) return "暂无订单状态"
  if(val == "unpaid") return "待支付"
  if(val == "haspay") return "支付成功"
  if(val == "payFail") return "支付失败"
  if(val == "cancelpay") return "取消支付"
  if(val == "cancelFail") return "取消订单失败 "
  if(val == "seatFail") return "占座失败"
  if(val == "outTicket") return "出票中"
  if(val == "outTicketSuccess") return "出票成功"
  if(val == "outTicketFail") return "出票失败"
  if(val == "refundTicket") return "退票中"
  if(val == "refundTicketSuccess") return "退票成功"
  if(val == "refundTicketFail") return "退票失败"
  if(val == "changeRefundTicket") return "改签退票中"
  if(val == "changeRefundTicketSuccess") return "改签退票成功"
  if(val == "changeRefundTicketFail") return "改签退票失败"
  if(val == "changeTicket") return "改签中"
  if(val == "cancelChangeTicket") return "取消改签"
  if(val == "cancelChangeTicketFail") return "取消改签失败"
  if(val == "changeTicketSuccess") return "改签成功"
  if(val == "changeTicketFail") return "改签失败"
  if(val == "changeOutTicket") return "改签出票中"
}
// 支付状态
export function payStatus(val){
  if(!val) return "暂无"
  if(val == "unpaid") return "待支付"
  if(val == "haspay") return "支付成功"
  if(val == "payFail") return "支付失败"
  if(val == "cancelpay") return "取消支付"
}
// 订单来源
export function orderSource(val){
  if(!val) return "暂无"
  if(val === "crm") return "CRM"
  if(val === "program") return "小程序"
  if(val === "android") return "安卓"
  if(val === "ios") return "苹果"
}

